module BundlesHelper

  # Translates the numeric score to credit grade
  def credit_grade(credit_score)
    Posting::CREDIT_GRADES[credit_score]
  end

  # Add the $ sign and round to whole dollars
  def amount_requested(amount_requested)
    "$%d" % amount_requested
  end
  
  # Add the % sign to the value and convert it to a percentage
  def round_percentage(value)
    "%d%%" % (value * 100.0)
  end
end
